const router = require("koa-router")();
const {
  doLogin,
  getUserInfo,
  logout,
  findUserList,
  createUserList
} = require("../controller/user.controller");
router.prefix("/users");

//登录
router.post("/login", doLogin);

//获取用户信息
router.get("/userinfo", getUserInfo);

//退出登录
router.post("/logout", logout);

//查询用户列表
router.post("/userlist", findUserList);

//创建用户列表
router.post("/createuser", createUserList);
module.exports = router;
